package com.example.otherapp.config;

import org.springframework.context.annotation.Configuration;
import org.thymeleaf.spring5.view.ThymeleafViewResolver;

import javax.annotation.Resource;

@Configuration
public class ThymeleafConfig {

    @Resource
    private void configThymeleafVar(ThymeleafViewResolver resolver) {
        if (resolver != null) {
            resolver.addStaticVariable("myTitle", "在云端");
        }
    }
}